package com.xunchi.haichuan.audit.dao;

import java.util.Collection;

import com.netai.safedoc.common.dao.BaseEntityDAOImpl;
import com.xunchi.haichuan.audit.model.Log;

/**
 * 作者：netai-kongxb<br>
 * 模块名称：审计模块<br>
 * 功能描述：审计日志数据存取实现<br>
 * 维护记录：2009.11.27, kongxb 创建该类
 */
public class LogDAOImpl extends BaseEntityDAOImpl<Log> implements LogDAO {

	public LogDAOImpl() {

	}

	public LogDAOImpl(Class<Log> type) {
		super(type);
	}

	/*
	 * @see com.xunchi.haichuan.audit.dao.LogDAO#getById(java.lang.String)
	 */
	public Log getById(String id) throws Exception {
		return this.getByID(id);
	}

	/*
	 * @seecom.xunchi.haichuan.audit.dao.LogDAO#save(com.xunchi.haichuan.audit.model.Log)
	 */
	public void save(Log entity) {
		this.saveEntity(entity);
	}

	/*
	 * @seecom.xunchi.haichuan.audit.dao.LogDAO#update(com.xunchi.haichuan.audit.model.Log)
	 */
	public void update(Log entity) {
		this.updateEntity(entity);
	}

	/*
	 * @seecom.xunchi.haichuan.audit.dao.LogDAO#delete(com.xunchi.haichuan.audit.model.Log)
	 */
	public void delete(Log entity) {
		this.deleteEntity(entity);
	}

	/*
	 * @see com.xunchi.haichuan.file.audit.LogDAO#delete(java.util.Collection<com.xunchi.haichuan.audit.model.Log>)
	 */
	public void delete(Collection<Log> con) {
		this.deleteByList(con);
	}

}
